package com.ruoyi.goodsAct.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品活动表 goods_act
 * 
 * @author zuo min
 * @date 2019-08-08
 */
public class GoodsAct extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 商品活动ID */
	private Integer actId;
	/** 商品id */
	private Integer goodsId;
	/** 销售人员id */
	private Integer saleId;
	/** 店铺ID */
	private Integer shopId;
	/** 活动开始时间 */
	private Date startingTime;
	/** 活动结束时间 */
	private Date endTime;
	/** 活动商品市场价格 */
	private BigDecimal marketPrice;
	/** 当前价格 */
	private BigDecimal curvePrice;
	/** 砍价起始价格 */
	private BigDecimal startPrice;
	/** 砍价底价 */
	private BigDecimal floorPrice;
	/** 商品周期 */
	private Integer cycleTime;
	/** 再次购买时间 */
	private Integer againBuyDate;
	/** 每日销售数量 */
	private String saleNum;
	/** 库存数 */
	private String stockNum;
	/** 是否需要预约 */
	private String isReserve;
	/** 是否支持退款 */
	private String isRefund;
	/** 法定节假日是否可用 */
	private String isHoliday;
	/** 是否可堂食 */
	private String isInEat;
	/** 活动备注 */
	private String actRemark;
	/** 是否上线 */
	private String actOnline;
	/** 砍价区间 */
	private String priceRange;
	/** 热度 */
	private Integer hotDegree;
	/** 砍价人数 */
	private Integer bargainNumber;
	/** 提成比例 */
	private BigDecimal commissionRate;
	/** 商户收益比例 */
	private BigDecimal merchantIncomeRate;
	/** 版本控制 */
	private Integer version;
	/** 创建时间 */
	private Date createdTime;

	public void setActId(Integer actId) 
	{
		this.actId = actId;
	}

	public Integer getActId() 
	{
		return actId;
	}
	public void setGoodsId(Integer goodsId) 
	{
		this.goodsId = goodsId;
	}

	public Integer getGoodsId() 
	{
		return goodsId;
	}
	public void setSaleId(Integer saleId) 
	{
		this.saleId = saleId;
	}

	public Integer getSaleId() 
	{
		return saleId;
	}
	public void setShopId(Integer shopId) 
	{
		this.shopId = shopId;
	}

	public Integer getShopId() 
	{
		return shopId;
	}
	public void setStartingTime(Date startingTime) 
	{
		this.startingTime = startingTime;
	}

	public Date getStartingTime() 
	{
		return startingTime;
	}
	public void setEndTime(Date endTime) 
	{
		this.endTime = endTime;
	}

	public Date getEndTime() 
	{
		return endTime;
	}
	public void setMarketPrice(BigDecimal marketPrice) 
	{
		this.marketPrice = marketPrice;
	}

	public BigDecimal getMarketPrice() 
	{
		return marketPrice;
	}
	public void setCurvePrice(BigDecimal curvePrice) 
	{
		this.curvePrice = curvePrice;
	}

	public BigDecimal getCurvePrice() 
	{
		return curvePrice;
	}
	public void setStartPrice(BigDecimal startPrice) 
	{
		this.startPrice = startPrice;
	}

	public BigDecimal getStartPrice() 
	{
		return startPrice;
	}
	public void setFloorPrice(BigDecimal floorPrice) 
	{
		this.floorPrice = floorPrice;
	}

	public BigDecimal getFloorPrice() 
	{
		return floorPrice;
	}
	public void setCycleTime(Integer cycleTime) 
	{
		this.cycleTime = cycleTime;
	}

	public Integer getCycleTime() 
	{
		return cycleTime;
	}
	public void setAgainBuyDate(Integer againBuyDate) 
	{
		this.againBuyDate = againBuyDate;
	}

	public Integer getAgainBuyDate() 
	{
		return againBuyDate;
	}
	public void setSaleNum(String saleNum) 
	{
		this.saleNum = saleNum;
	}

	public String getSaleNum() 
	{
		return saleNum;
	}
	public void setStockNum(String stockNum) 
	{
		this.stockNum = stockNum;
	}

	public String getStockNum() 
	{
		return stockNum;
	}
	public void setIsReserve(String isReserve) 
	{
		this.isReserve = isReserve;
	}

	public String getIsReserve() 
	{
		return isReserve;
	}
	public void setIsRefund(String isRefund) 
	{
		this.isRefund = isRefund;
	}

	public String getIsRefund() 
	{
		return isRefund;
	}
	public void setIsHoliday(String isHoliday) 
	{
		this.isHoliday = isHoliday;
	}

	public String getIsHoliday() 
	{
		return isHoliday;
	}
	public void setIsInEat(String isInEat) 
	{
		this.isInEat = isInEat;
	}

	public String getIsInEat() 
	{
		return isInEat;
	}
	public void setActRemark(String actRemark) 
	{
		this.actRemark = actRemark;
	}

	public String getActRemark() 
	{
		return actRemark;
	}
	public void setActOnline(String actOnline) 
	{
		this.actOnline = actOnline;
	}

	public String getActOnline() 
	{
		return actOnline;
	}
	public void setPriceRange(String priceRange) 
	{
		this.priceRange = priceRange;
	}

	public String getPriceRange() 
	{
		return priceRange;
	}
	public void setHotDegree(Integer hotDegree) 
	{
		this.hotDegree = hotDegree;
	}

	public Integer getHotDegree() 
	{
		return hotDegree;
	}
	public void setBargainNumber(Integer bargainNumber) 
	{
		this.bargainNumber = bargainNumber;
	}

	public Integer getBargainNumber() 
	{
		return bargainNumber;
	}
	public void setCommissionRate(BigDecimal commissionRate) 
	{
		this.commissionRate = commissionRate;
	}

	public BigDecimal getCommissionRate() 
	{
		return commissionRate;
	}
	public void setMerchantIncomeRate(BigDecimal merchantIncomeRate) 
	{
		this.merchantIncomeRate = merchantIncomeRate;
	}

	public BigDecimal getMerchantIncomeRate() 
	{
		return merchantIncomeRate;
	}
	public void setVersion(Integer version) 
	{
		this.version = version;
	}

	public Integer getVersion() 
	{
		return version;
	}
	public void setCreatedTime(Date createdTime) 
	{
		this.createdTime = createdTime;
	}

	public Date getCreatedTime() 
	{
		return createdTime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("actId", getActId())
            .append("goodsId", getGoodsId())
            .append("saleId", getSaleId())
            .append("shopId", getShopId())
            .append("startingTime", getStartingTime())
            .append("endTime", getEndTime())
            .append("marketPrice", getMarketPrice())
            .append("curvePrice", getCurvePrice())
            .append("startPrice", getStartPrice())
            .append("floorPrice", getFloorPrice())
            .append("cycleTime", getCycleTime())
            .append("againBuyDate", getAgainBuyDate())
            .append("saleNum", getSaleNum())
            .append("stockNum", getStockNum())
            .append("isReserve", getIsReserve())
            .append("isRefund", getIsRefund())
            .append("isHoliday", getIsHoliday())
            .append("isInEat", getIsInEat())
            .append("actRemark", getActRemark())
            .append("actOnline", getActOnline())
            .append("priceRange", getPriceRange())
            .append("hotDegree", getHotDegree())
            .append("bargainNumber", getBargainNumber())
            .append("commissionRate", getCommissionRate())
            .append("merchantIncomeRate", getMerchantIncomeRate())
            .append("version", getVersion())
            .append("createdTime", getCreatedTime())
            .toString();
    }
}
